import $http    from '@/utils/http';
import $toast   from '@/utils/toast';

/**
 * 规则协议
 * @param  {[type]} type 类型
 * @return Promise
 */
export function getRules(rules_id)
{
	if(!rules_id)
		return new Promise( ()=> { $toast('RULES_ID 不能为空') });

	return $http.post('', { module : 'Goods#article', id : rules_id });
}